package com.group.controller;

import com.group.entity.CommonResult;
import com.group.service.WareHouseAreaService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/warehouseArea")
public class WarehouseAreaController {

    @Resource
    private WareHouseAreaService wareHouseAreaService;


    @GetMapping("/findListByWarehouseId/{warehouseId}")
    public CommonResult<?> findListByWarehouseId(@PathVariable("warehouseId")Long warehouseId){
        return CommonResult.success(this.wareHouseAreaService.findListByWarehouseId(warehouseId),"请求成功");
    }
}
